home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / daemons / bootp / RCS / bootp.h,v < prev   
Encoding:
Text File  |  1989-07-31  |  1.4 KB  |  70 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.1
  10. date     89.07.31.13.14.58;  author rab;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @@
  17.  
  18.  
  19.  
  20. 1.1
  21. log
  22. @Initial revision
  23. @
  24. text
  25. @/*
  26.  * Bootstrap Protocol (BOOTP).  RFC 951.
  27.  */
  28.  
  29. struct bootp {
  30.     u_char    bp_op;        /* packet opcode type */
  31. #define    BOOTREQUEST    1
  32. #define    BOOTREPLY    2
  33.     u_char    bp_htype;    /* hardware addr type */
  34.     u_char    bp_hlen;    /* hardware addr length */
  35.     u_char    bp_hops;    /* gateway hops */
  36.     u_long    bp_xid;        /* transaction ID */
  37.     u_short    bp_secs;    /* seconds since boot began */    
  38.     u_short    bp_unused;
  39.     iaddr_t    bp_ciaddr;    /* client IP address */
  40.     iaddr_t    bp_yiaddr;    /* 'your' IP address */
  41.     iaddr_t    bp_siaddr;    /* server IP address */
  42.     iaddr_t    bp_giaddr;    /* gateway IP address */
  43.     u_char    bp_chaddr[16];    /* client hardware address */
  44.     u_char    bp_sname[64];    /* server host name */
  45.     u_char    bp_file[128];    /* boot file name */
  46.     u_char    bp_vend[64];    /* vendor-specific area */
  47. };
  48.  
  49. /*
  50.  * UDP port numbers, server and client.
  51.  */
  52. #define    IPPORT_BOOTPS        67
  53. #define    IPPORT_BOOTPC        68
  54.  
  55. /*
  56.  * "vendor" data permitted for Stanford boot clients.
  57.  */
  58. struct vend {
  59.     u_char    v_magic[4];    /* magic number */
  60.     u_long    v_flags;    /* flags/opcodes, etc. */
  61.     u_char    v_unused[56];    /* currently unused */
  62. };
  63.  
  64. #define    VM_STANFORD    "STAN"    /* v_magic for Stanford */
  65.  
  66. /* v_flags values */
  67. #define    VF_PCBOOT    1    /* an IBMPC or Mac wants environment info */
  68. #define    VF_HELP        2    /* help me, I'm not registered */
  69. @
  70.